/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MenuUtil.java
 *
 * Created on 1/Dez/2011, 22:05:47
 */
package desint;

import java.awt.CardLayout;


/**
 *
 * @author lenny
 */
public class MenuUtil extends javax.swing.JPanel {
     public JanelaPrincipal jp;
     private CardLayout cardlayout;

    /** Creates new form MenuUtil */
    public MenuUtil() {
        initComponents();
        tabela.setAutoCreateRowSorter(true);
    }

    
    public void procura(){
     
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLayeredPane1 = new javax.swing.JLayeredPane();
        jComboBox9 = new javax.swing.JComboBox();
        bPesquisa = new javax.swing.JButton();
        campoProcura = new javax.swing.JTextField();
        jLabel72 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tabela = new javax.swing.JTable();

        setBackground(new java.awt.Color(255, 255, 255));

        jLayeredPane1.setBackground(new java.awt.Color(255, 255, 255));

        jComboBox9.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Nome", "Treinador", "BI", "Nº Socio", "Telefone" }));
        jComboBox9.setBounds(540, 10, 70, 30);
        jLayeredPane1.add(jComboBox9, javax.swing.JLayeredPane.DEFAULT_LAYER);

        bPesquisa.setText("Pesquisar");
        bPesquisa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                bPesquisaMouseClicked(evt);
            }
        });
        bPesquisa.setBounds(620, 10, 110, 30);
        jLayeredPane1.add(bPesquisa, javax.swing.JLayeredPane.DEFAULT_LAYER);
        campoProcura.setBounds(90, 10, 440, 30);
        jLayeredPane1.add(campoProcura, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel72.setText("Consultar por:");
        jLabel72.setBounds(10, 10, 80, 20);
        jLayeredPane1.add(jLabel72, javax.swing.JLayeredPane.DEFAULT_LAYER);

        tabela.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {"23", "Afonso Alberto", "treinador", "3456545"},
                {"18", "Kim Kardashian", "socio", "2315456"},
                {"13", "Fernando Alonso", "socio", "4563454"},
                {"15", "Johny Depp", "socio", "2325434"},
                {"12", "Nuno Gomes", "treinador", "1231763"},
                {"11", "Zeka Marinha", "treinador", "1232837"},
                {"19", "Joana Linda", "treinador", "1234567"}
            },
            new String [] {
                "Nº Socio", "Nome", "Perfil", "Telefone"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tabela.setDragEnabled(true);
        tabela.getTableHeader().setReorderingAllowed(false);
        jScrollPane2.setViewportView(tabela);

        jScrollPane2.setBounds(40, 60, 720, 160);
        jLayeredPane1.add(jScrollPane2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 850, Short.MAX_VALUE)
                .addGap(57, 57, 57))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(25, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void bPesquisaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bPesquisaMouseClicked
        procura();
    }//GEN-LAST:event_bPesquisaMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bPesquisa;
    private javax.swing.JTextField campoProcura;
    private javax.swing.JComboBox jComboBox9;
    private javax.swing.JLabel jLabel72;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTable tabela;
    // End of variables declaration//GEN-END:variables
}


